package com.srit.migration.business.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

import com.srit.base.bean.Page;
import com.srit.migration.business.bean.DbTable;
import com.srit.migration.business.dao.DbTableDao;
import com.srit.migration.business.service.DbTableService;

/**
 * @author guan
 * @by serviceImpl.tem
 * 
 */
 @Service
public class DbTableServiceImpl implements DbTableService {
	@Autowired(required = true)
	private DbTableDao dbTableDao;

	@Override
	public void save(DbTable dbTable) {
		dbTableDao.save(dbTable);
	}

	@Override
	public void update(DbTable dbTable) {
		dbTableDao.update(dbTable);
	}

	@Override
	public DbTable getById(DbTable dbTable) {
		return (DbTable) dbTableDao.getById(dbTable);
	}

	@Override
	public void delete(DbTable dbTable) {
		dbTableDao.delete( dbTable);
	}

	@Override
	public void page(Page page) {
		dbTableDao.page( page);
	}
	
	@Override
	public void batchSave(List<DbTable> dbTableList) {
		dbTableDao.batchSave(dbTableList);

	}

	@Override
	public List list(Page page) {
		return dbTableDao.list( page);
	}

}
